
import pygame
import sys
import traceback


from pygame.locals import *

# 初始pygame
pygame.init()
pygame.mixer.init()

bg_size = width, height = 480, 700
screen = pygame.display.set_mode(bg_size)
pygame.display.set_caption("玩个球啊！——— 孙大胖工作室出品")

background = pygame.image.load("images/background.png").convert()

BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
GREEN = (0, 255, 0)
RED = (255, 0, 0)




def main():
   

    clock = pygame.time.Clock()

    running = True

    while running :
        for event in pygame.event.get():
            if event.type == QUIT :
                pygame.quit()
                sys.exit()

        sceen.blit(background,(0,0))

        pygame.display.flip()

        clock.tick(60)


if __name__ == "__main__" :
    try:
        main
    except SystemExit :
        pass
    except:
        traceback.print_exc()
        input
        




